import QtQuick 2.6
import QtQuick.Layouts 1.1
import Qt.labs.controls 1.0
import "../lib"

Navigator {
    id: nav
    title: "找回密码"
    submitted: true
    contentHeight: Math.max(iHEIGHT * 12, height)

    View {
        id: panel
        anchors.centerIn: parent
        anchors.verticalCenterOffset:  -iHEIGHT * 2
        width: parent.width * 0.85
        height: iHEIGHT * 5

        GridLayout {
            anchors.centerIn: parent
            rowSpacing: iHEIGHT * 0.5
            columns: 2

            Label {
                text: "密码"
                Layout.alignment: Qt.AlignRight
            }

            TextField {
                id: tfPassword1
                Layout.preferredWidth: panel.width * 0.8
                echoMode: TextInput.Password
            }

            Label {
                text: "确认"
                Layout.alignment: Qt.AlignRight
            }
            TextField {
                id: tfPassword2

                Layout.preferredWidth: panel.width * 0.8

                echoMode: TextInput.Password
            }
        }
    }
}
